import {
    createApp
} from 'vue'
import App from './App.vue'

import router from './route2'
import request from './request'
import ErrorData from './error_handle';

import './index.css'
import { Button,Dialog,Toast } from 'vant'



request.errorData = ErrorData.data;
request.vue = createApp();
request.toast = Toast
request.Dialog = Dialog
request.router = router;
var unit = request;
window.unit = unit;

createApp(App)
.use(Button)
.use(router)
.mount('#app')